//
//  OverviewCardView.h
//  cocoapodText
//
//  Created by apple on 16/9/7.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef OverviewCardView_h
#define OverviewCardView_h


#endif /* OverviewCardView_h */
#import <UIKit/UIKit.h>
#import "CommonTool.h"
@class OverviewCardView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol GYCardViewDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onSetData:(OverviewCardView *)CardView;

@end

@interface OverviewCardView : UIView
//标识单位
@property(nonatomic,strong)UILabel *GYCardUnitLabel;
//标识数量
@property(nonatomic,strong)UILabel *GYCardNumberLabel;
//标识文字
@property(nonatomic,strong)UILabel *GYCardTypeLabel;
//标识图片
@property(nonatomic,strong)UIImageView *GYCardTypeImage;
//背景
@property(nonatomic,strong)UIImageView *GYCardBGImage;

#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<GYCardViewDelegate> delegate;

#pragma mark - 公共方法
-(void)setData;
-(void)setCardBGImage:(UIColor *)CardBGImageColor;
-(void)setCardTypeImage:(NSString *)CardTypeImage;
-(void)setCardTypeLabel:(NSString *)CardTypeLabel;
-(void)setCardNumberLabel:(NSString *)CardNumberLabel;
-(void)setCardUnitLabel:(NSString *)CardUnitLabel;


@end
